<?php
require_once("header.php");

if(!$Auth->checkAuth()) {

echo json_encode(array('error' => 1));

exit;

}



if(empty($today_earnings))
$today_earnings = "0";


if(empty($today_earnings))
$today_earnings = "0.00";

if(empty($today_downloads))
$today_downloads = "0";

if(empty($avgcpa))
$avgcpa = "0.00";

if(empty($total_earnings))
$total_earnings = "0.00";


if(empty($month_earnings))
$month_earnings = "0.00";



echo json_encode(array('downloads' => $today_downloads, 'earnings' => $today_earnings,  'month_earnings' => $month_earnings, 'total_earnings' => $total_earnings));



return;


?>